# Auther:haijing
# 时间:1018-week6

stu_id = [10001,10002,10003,10004,10008,10001,10009,10010,10001]

#for i in stu_id:
#    if i == 10001:
#        print()
# 判断如果元素为10001的时候,怎么取出索引值
#            可以用“枚举 ”enumerate()
#枚举:因为list其实不仅有values值，还有index索引，但for循环主要循环遍历其值，不遍历索引

#pop_values_list = []
#for index,i in enumerate(stu_id):
#    if i == 10001:
#        print(index,i)
#        pop_values_list.append(index)
#    print(pop_values_list)==>0 10001
#                            [0]
#                            [0]
#                            [0]
#                            [0]
#                            [0]
#                            5 10001
#                           [0, 5]
#                           [0, 5]
#                           [0, 5]
#                           8 10001
#                          [0, 5, 8]




